package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 报餐申请记录对象 erp_meal_record
 *
 * @author cxl
 * @date 2024-06-13
 */
@TableName ("erp_meal_record")
@ApiModel (value = "报餐申请记录", description = "报餐申请记录")
@Data
public class MealRecordEntity {

        /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 餐食名称 */
        @ApiModelProperty ("餐食名称")
        @TableField ("name")
        @Excel (name = "餐食名称")
        private String name;

        /** 时间 */
        @ApiModelProperty ("时间")
        @TableField ("time")
        @JsonFormat (pattern = "yyyy-MM-dd")
        @Excel (name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date time;

        /** 申请人 */
        @ApiModelProperty ("申请人")
        @TableField ("user_id")
        @Excel (name = "申请人")
        private String userId;

        @ApiModelProperty ("创建时间")
        @TableField (value = "create_time")
        @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;

        /** 更新时间 */
        @ApiModelProperty ("更新时间")
        @TableField ("change_time")
        @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
        private Date changeTime;


        @ApiModelProperty ("逻辑删除")
        @TableField ("is_used")
        @Excel (name = "逻辑删除")
        private Integer isUsed;

        /** 状态 */
        @ApiModelProperty ("状态")
        @TableField ("state")
        @Excel (name = "状态")
        private String state;

        /** 流程实例ID */
        @ApiModelProperty ("流程实例ID")
        @TableField ("instance_id")
        @Excel (name = "流程实例ID")
        private String instanceId;

}
